* nsmenu.m (ns_update_menubar): Correct NSTRACE.
authorJan D. <jan.h.d@swipnet.se>
Sat, 30 Mar 2013 09:57:27 +0000 (10:57 +0100)
committerJan D. <jan.h.d@swipnet.se>
Sat, 30 Mar 2013 09:57:27 +0000 (10:57 +0100)
commit72b593d51ffc6bd3fe141a55ec8aab164d8acf3b
tree33e4d5e1d72703083123792068ae30b5cff1f25f
parentf874004561526ec1e7dae39ad529c70e39000b05
* nsmenu.m (ns_update_menubar): Correct NSTRACE.
(x_activate_menubar): Update the menu with title that matches
ns_get_pending_menu_title, and call
ns_check_pending_openmenu.
(menuWillOpen:): New method.
(menuNeedsUpdate:): Add check for ! COCOA || OSX < 10.5 (Bug#12698).

* nsterm.h (ns_get_pending_menu_title, ns_check_menu_open)
(ns_check_pending_open_menu): Declare.

* nsterm.m (menu_will_open_state, menu_mouse_point)
(menu_pending_title): New varaibles.
(ns_get_pending_menu_title, ns_check_menu_open)
(ns_check_pending_open_menu): New functions.
src/ChangeLog
src/nsmenu.m
src/nsterm.h
src/nsterm.m